package com.my.cloud.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ComputerController {

//    @Resource
//    private DiscoveryClient client;

    @RequestMapping(value = "/add", method = RequestMethod.GET)
    public Integer add(@RequestParam Integer a, @RequestParam Integer b){
        //InstanceInfo.InstanceStatus instanceStatus = client.getInstanceRemoteStatus();
        Integer r = a + b;
        System.out.println("hello service4");
        return r;
    }
}
